import requests

from api.ihrm_api import IhrmApi


class TokenUtil:
    @classmethod
    def get_token(cls):
        login_body = {"mobile": "13800000002", "password": "123456"}
        login_re = IhrmApi.ihrm_login(login_body)
        token = login_re.json().get("data")
        return token


if __name__ == '__main__':
    print("令牌：", TokenUtil.get_token())
